<?php 
if(!is_user_logged_in()){
    wp_redirect(get_site_url());
    exit();
}
$user = get_current_user();
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>

<head>

    <meta charset="<?php bloginfo( 'charset' ); ?>">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="Sistema de promoción de buenas prácticas ambientales.">
    <meta name="keywords" content="ecopyme, BPAs">
    <meta name="author" content="">
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
    <title><?php wp_title( '|', true, 'right' );echo get_bloginfo( 'description', 'display' ); ?></title>
    <link rel="shortcut icon" href="<?php echo get_template_directory_uri(); ?>/img/favicon.ico" type="image/x-icon" />
    <!-- Custom Fonts -->
    <?php wp_head(); ?>
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script src="<?php echo get_template_directory_uri(); ?>/js/chart.js"></script>
    <script src="<?php echo get_template_directory_uri(); ?>/js/script.js"></script>
    <script src="<?php echo get_template_directory_uri(); ?>/js/jquery.mask.js"></script>
    <script src="<?php echo get_template_directory_uri(); ?>/js/jquery.blockUI.js"></script>
    <script src="<?php echo get_template_directory_uri(); ?>/js/dashboard_logic.js"></script>
    <link href="<?php echo get_template_directory_uri(); ?>/css/reset.css" rel="stylesheet">
    <link href="<?php echo get_template_directory_uri(); ?>/css/dashboard.css" rel="stylesheet">


</head>

<body <?php body_class(); ?>  style="background-color: #E5E8EB; !important">
<header id="top-header">
        <div class="wrapper">
            <h1 id="ecopyme-logo">ECOPYME</h1>
            <div class="menu-toggle">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </div>
            <?php 
                    get_template_part('dashboard-top-login','form');
            ?>
        </div>
</header>
<div class="wrapper">